package com.epin.business.system.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import java.util.Date;
import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import java.io.Serializable;

/**
 * <p>
 * 用户角色映射表
 * </p>
 *
 * @author 
 * @since 2017-10-31
 */
@TableName("t_role_user")
public class RoleUser extends Model<RoleUser> {

    private static final long serialVersionUID = 1L;

	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 角色id
     */
	@TableField("r_id")
	private Integer rId;
    /**
     * 用户id
     */
	@TableField("u_id")
	private Integer uId;
    /**
     * 创建时间
     */
	@TableField("t_create_time")
	private Date tCreateTime;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getrId() {
		return rId;
	}

	public void setrId(Integer rId) {
		this.rId = rId;
	}

	public Integer getuId() {
		return uId;
	}

	public void setuId(Integer uId) {
		this.uId = uId;
	}

	public Date gettCreateTime() {
		return tCreateTime;
	}

	public void settCreateTime(Date tCreateTime) {
		this.tCreateTime = tCreateTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
